from selenium import  webdriver
import time

option = webdriver.ChromeOptions()
option.add_argument('disable-infobars')

driver = webdriver.Chrome(chrome_options=option)
driver.get('https://www.12306.cn/index/')
js = "document.getElementById('train_date').removeAttribute('readonly')"
driver.execute_script(js)
time.sleep(2)
driver.find_element_by_id('train_date').clear()
time.sleep(2)
driver.find_element_by_id('train_date').send_keys('2019-3-12')

